<template>
  <img src="@/assets/icon128.png" alt="" class="lightBtn" @click="btnClicked">
  <rightDrawer v-model="open" />
</template>

<script setup>
import { ref } from 'vue'
import rightDrawer from './components/rightDrawer.vue'

const open = ref(false)

const btnClicked = () => {
  open.value = true
}
</script>

<style lang="less" scoped>
  .lightBtn {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    position: fixed;
    right: 24px;
    top: 50px;
    cursor: pointer;
    z-index: 9999;
  }
</style>